using System;
using System.Text;

namespace memdb_demo.Utils{
    public static class CommonExtensions{
        public static Encoding CurrentEncoding = Encoding.Default;

        public static string ConvertToString(this byte[] strBytes){
            return CurrentEncoding.GetString(strBytes);
        }


        public static byte[] ConvertToBytes(this string str){
            return CurrentEncoding.GetBytes(str);
        }
    }
}